package icu.qx.wm.service;

import icu.qx.wm.domain.WmWarehouse;
import icu.qx.wm.vo.WarehouseFormVo;

import java.util.List;
import java.util.Map;

/**
* @author Administrator
* &#064;description  针对表【wm_warehouse(仓库)】的数据库操作Service
* &#064;createDate  2024-06-05 17:01:06
 */
public interface IWmWarehouseService {
    /**
     * 查询仓库
     *
     * @param wCode 仓库主键
     * @return 仓库
     */
    WmWarehouse selectWmWarehouseByWCode(String wCode);

    /**
     * 查询仓库列表
     *
     * @param wmWarehouse 仓库
     * @return 仓库集合
     */
    List<WmWarehouse> selectWmWarehouseList(WmWarehouse wmWarehouse);

    /**
     * 新增仓库
     *
     * @param wmWarehouse 仓库
     * @return 结果
     */
    int insertWmWarehouse(WmWarehouse wmWarehouse);

    /**
     * 修改仓库
     *
     * @param wmWarehouse 仓库
     * @return 结果
     */
    int updateWmWarehouse(WmWarehouse wmWarehouse);

    /**
     * 批量删除仓库
     *
     * @param wCodes 需要删除的仓库主键集合
     * @return 结果
     */
    int deleteWmWarehouseByWCodes(String[] wCodes, Integer[] saCount);

    /**
     * 删除仓库信息
     *
     * @param wCode 仓库主键
     * @return 结果
     */
    int deleteWmWarehouseByWCode(String wCode);

    /**
     * 查询仓库列表(beta)
     */
    List<WmWarehouse> selectWmWarehouseWithArea(WmWarehouse wmWarehouse);

    /**
     * 查询仓库编码
     */
    List<Map<String, String>> selectWmWarehouseCode(WarehouseFormVo warehouseFormVo);
}
